package de.hhbk.feedbackmodul.util;


public class HibernateUtil {

	/*private static SessionFactory sessionFactory;
	private static ServiceRegistry serviceRegistry;

    public static SessionFactory getConfiguredSessionFactory() throws HibernateException {
    	if(sessionFactory == null)
    	{
    		Configuration configuration = new Configuration();
    		configuration.configure("\\META-INF\\hibernate.cfg.xml");
    		serviceRegistry = new ServiceRegistryBuilder().applySettings(configuration.getProperties()).buildServiceRegistry();        
    		sessionFactory = configuration.buildSessionFactory(serviceRegistry);
    		return sessionFactory;
    	}
    	return sessionFactory;
    }
    */
}
